package com.example.jdbcdemo.mapper;


import com.example.jdbcdemo.pojo.CollectMoneyOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CollectMoneyOrderMapper {
    List<CollectMoneyOrder> queryCollectMoneyOrderList();//返回列表

    CollectMoneyOrder queryCollectMoneyOrderById(int id);//根据id来查找，先放着不用它

    List<CollectMoneyOrder> queryCollectMoneyOrderByCustomerId(int customerId);//根据客户id返回对应付款单

    int addCollectMoneyOrder(CollectMoneyOrder collectMoneyOrder);//增

    int updateCollectMoneyOrder(CollectMoneyOrder collectMoneyOrder);//改

    int deleteCollectMoneyOrder(int id);//删

    int deleteCollectMoneyOrderByGroupId(int groupId);//根据groupid来进行退货

    CollectMoneyOrder queryCollectMoneyOrderByGroupId(int groupId);//根据标识组id来获取本次销售单
}
